//CAN基础参数
#ifndef CANPAR_H
#define CANPAR_H
#include "ECanVci.h"
#include "QStandardItem"



extern int nDeviceType; /* USBCAN-II */
extern int nDeviceInd ;
extern int nReserved;
extern DWORD dwRel_open;
extern DWORD dwRel_init,CAN2_dwRel_init;
extern DWORD dwRel_start,can2_dwRel_start;
extern DWORD dwRel_read,can2_dwRel_read;
extern INIT_CONFIG init_config,can_1_init_config;
extern CAN_OBJ vco[100],CAN2_vco[100];
extern quint32 RE_CAN1_ID;      //读到的CANID
extern quint32 RE_CAN2_ID;      //读到的CANID
extern quint8 RE_CAN1_Data[8];  //读到的CAN数据
extern quint8 RE_CAN2_Data[8];  //读到的CAN数据
extern quint64 RE_CAN1_Time;    //设备读到时间
extern quint64 RE_CAN2_Time;    //设备读到时间
extern qint32 column_can,column_can2;  //构建CANID列表的行号
extern QStringList list_CANID,list_CAN2ID;  //构建一个CANID的表
extern quint32 canDxtime,can2Dxtime;
extern quint32 CAN_RT[1000],CAN2_RT[1000];
extern quint32 CAN_RTdex[1000],CAN2_RTdex[1000];
extern quint32 CAN_ST[1000],CAN2_ST[1000];
extern quint32 CAN_count[1000],CAN2_count[1000];
extern QStandardItemModel modelcan,modelcan2;
extern quint8 can_save;
extern QString canfileName;
extern quint8 CAN_send_control_0,CAN_send_control_1,CAN_send_control_2,CAN_send_control_3,CAN_send_control_4;
extern ERR_INFO vei_ERR_0,vei_ERR_1;
extern DWORD dwRel_ERR_0,dwRel_ERR_1;
#endif // MYDEF_H
